module.exports = {
    devServer: {
        proxy: { //代理
            '/api': {
                target: 'http://localhost:4000', //对应自己的接口
                changeOrigin: true,
                ws: true,
                pathRewrite: {  //替换多余的api
                    '^/api': ''
                }
            }
        }
    }
}
